package com.dka.assistants.model.dto.user;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户注册请求体
 */
@Data
public class UserRegisterRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 8905607234330680017L;

    @NotBlank(message = "账号不能为空")
    @Length(min = 4, message = "账号过短")
    private String userAccount;

    @NotBlank(message = "密码不能为空")
    @Length(min = 8, message = "密码过短或不合法")
    private String userPassword;

    @NotBlank(message = "密码不能为空")
    @Length(min = 8, message = "密码过短或不合法")
    private String checkPassword;
}
